package com.zx.lc.demo;


import dev.langchain4j.model.chat.ChatLanguageModel;
import dev.langchain4j.model.ollama.OllamaChatModel;


public class C1SimpleMain {

    public static void main(String[] args) {
        ChatLanguageModel model = OllamaChatModel.builder()
                .baseUrl("http://192.168.3.99:11434")
                .modelName("qwen2.5:7b")
                .build();
        String answer = model.chat("你好，你是谁？");
        System.out.println(answer);
    }
}


